const RigthsService = require("../service/RightsService")

const RightsController = {
    getList: async (req, res) => {
        const result = await RigthsService.getList()
        res.send(result)
    },
    updateList: async (req, res) => {
        const result = await RigthsService.updateList(req.body)
        // console.log('req.body', req.body);
        res.send(result)
    },
    deleteList: async (req, res) => {
        const result = await RigthsService.deleteList(req.body)
        // console.log('result', result);
        res.send(result)
    }
}
module.exports = RightsController